package com.hl.card.award.controller;

import com.hl.card.award.service.IUserRewardByTrans;
import com.hl.card.common.util.ResponseObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * java类简单作用描述
 *
 * @ProjectName: distdev
 * @Package: com.hl.card.modular.pack.controller
 * @ClassName: ${TYPE_NAME}
 * @Description: java类作用描述
 * @Author: 作者姓名
 * @CreateDate: 2018/7/9 17:45
 * @UpdateUser: Neil.Zhou
 * @UpdateDate: 2018/7/9 17:45
 * @UpdateRemark: The modified content
 * @Version: 1.0
 * <p>Copyright: Copyright (c) 2018</p>
 */
@RestController
@RequestMapping("/api")
public class UserRewardByTransController {
    @Autowired
    private IUserRewardByTrans rewardByTrans;

    @PostMapping(value = "/user/reward")
    public ResponseObject userReward(String userId) {
        return rewardByTrans.userReward(userId);
    }

    @PostMapping(value = "/user/checkReward")
    public ResponseObject checkUserReward(String userId) {
        return rewardByTrans.userReward(userId);
    }
}
